<include file="./admin-header" />

	<!-- BEGIN PAGE -->  
		<div class="page-content">           
			<!-- BEGIN PAGE HEADER-->   
			<div class="row">
				<div class="col-md-12">
					<!-- BEGIN PAGE TITLE & BREADCRUMB-->
					<h3 class="page-title">
						{$Think.lang.text_links} <small>{$Think.lang.text_links_management_tips_en}</small>
					</h3>
					<ul class="page-breadcrumb breadcrumb">
						<!-- <if condition="$Think.const.ACTION_NAME == 'edit'"> -->
						<li class="btn-group">
							<a href="{:U('add')}"><button type="button" id="add_link" class="btn blue">
							{$Think.lang.text_links_add} <i class="fa fa-plus"></i>
							</button></a>
						</li>
						<!-- </if> -->
						<li>
							<i class="fa fa-home"></i>
							<a href="{:U('Index/index')}">{$Think.lang.text_home}</a> 
							<i class="fa fa-angle-right"></i>
						</li>
						<li>
							<a href="{:U('Config/group')}">{$Think.lang.text_system}</a>
							<i class="fa fa-angle-right"></i>
						</li>
						<li>
							<a href="{:U('index')}">{$Think.lang.text_links}</a>
							<i class="fa fa-angle-right"></i>
						</li>
						<li>
							<a href="__SELF__">
								<!-- <if condition="$Think.const.ACTION_NAME == 'edit'"> -->{$Think.lang.text_links_edit}
								<!-- <else /> -->{$Think.lang.text_links_add}<!-- </if> -->
							</a>
						</li>
					</ul>
					<!-- END PAGE TITLE & BREADCRUMB-->
				</div>
			</div>
			<!-- END PAGE HEADER-->
			<!-- BEGIN PAGE CONTENT-->
			<div class="row">
				<div class="col-md-12">
					<!-- BEGIN PORTLET-->   
					<div class="portlet box blue">
						<div class="portlet-title">
							<div class="caption">
								<i class="fa fa-pencil"></i>{$Think.lang.text_links_lists}
							</div>
							<div class="tools">
								<a href="javascript:;" class="collapse"></a>
								<a href="javascript:;" class="reload"></a>
							</div>
						</div>
						<div class="portlet-body form">
							<!-- BEGIN FORM-->
							<form enctype="multipart/form-data" class="form-horizontal form-bordered" method="post" <if condition="$Think.const.ACTION_NAME == 'edit'">action="{:U('updateLink')}"<else />action="{:U('addLink')}"</if>>
							<input type="hidden" name="id" value="{$_GET['id']}" />
								<div class="form-body">
									<div class="form-group">
										<label class="control-label col-md-3">{$Think.lang.text_links_name}</label>
										<div class="col-md-3">
											<input type="text" name="link_name" class="form-control" value="{$link_name}" />
										</div>
									</div>
									<div class="form-group">
										<label class="control-label col-md-3">{$Think.lang.text_links_url}</label>
										<div class="col-md-3">
											<input type="text" name="linkurl" class="form-control" value="{$linkurl}" />
										</div>
									</div>
									<div class="form-group">
										<label class="control-label col-md-3">{$Think.lang.text_status}</label>
										<div class="col-md-3">
											<div class="radio-list">
												<label class="radio-inline">
													<span>
														<input type="radio" name="status" id="optionsRadios25" value="1" <if condition="$status eq 1">checked="checked"</if>>
													</span>{$Think.lang.button_enable}
												</label>
												<label class="radio-inline">
													<span>
														<input type="radio" name="status" id="optionsRadios26" value="0" <if condition="$status eq 0">checked="checked"</if>>
													</span>{$Think.lang.button_disable}
												</label> 
											</div>
										</div>
									</div>
									<div class="form-group">
										<label class="control-label col-md-3">{$Think.lang.text_links_logo}</label>
										<div class="col-md-9">
											<input type="file" name="link_logo" value="{$link_logo}" />
										</div>
									</div>
									<div class="form-group">
										<label class="control-label col-md-3">{$Think.lang.button_listorder}</label>
										<div class="col-md-3">
											<input type="text" name="link_url" class="form-control" value="{$link_url}" />
										</div>
									</div>
								</div>
								<div class="form-actions fluid">
									<div class="row">
										<div class="col-md-12">
											<div class="col-md-offset-3 col-md-9">
												<button type="submit" name="dosubmit" class="btn blue">
													<i class="fa fa-check"></i> {$Think.lang.button_submit}</button>
												<button type="button" class="btn default" onclick="javascript:history.back(-1);">{$Think.lang.button_back} 
													<i class="fa fa-reply"></i></button>                              
											</div>
										</div>
									</div>
								</div>
							</form>
							<!-- END FORM-->  
						</div>
					</div>
					<!-- END PORTLET-->
				</div>
			</div>
			<!-- END PAGE CONTENT-->   
		</div>
		<!-- END PAGE -->  
	</div>
	<!-- END CONTAINER -->
	<include file="./admin-js" />
	<script>
		jQuery(document).ready(function() {
		   App.init();
		});
	</script>

<include file="./admin-footer" />